<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common/globals.css">
<title>基础测试审批</title>
<script type="text/javascript">
	function pass() {
		if (window.confirm("确定？")) {
			var score = document.approvalForm.score.value;
			if (score <= 0 || score != parseFloat(score) || score > 10) {
				document.getElementById("s_baseTestScore").innerHTML = "数值非法";
			} else {
				document.getElementById("s_baseTestScore").innerHTML = "";
				document.approvalForm.submit();
			}
		}
	}

	function nopass() {
		if (window.confirm("确定？？")) {
			document.approvalForm.agree.value = false;
			document.approvalForm.submit();
		}
	}
</script>
</head>

<body marginwidth="0" marginheight="0">
	<div id="container">
		<s:form name="approvalForm" method="post" action="/control/process/testdoApproval.do">
			<s:hidden name="taskId"/>
		    <s:hidden name="tid"/>
			<input type="hidden" name="agree" value="true">
			<table id="table1">
				<tbody>
					<tr>
						<th colspan="2">基础测试审批：</th>
					</tr>
					<tr>
						<td align="center"><b>审批意见</b></td>
						<td><textarea rows="5" cols="80" name="comment"></textarea></td>
					</tr>
					<tr>
						<td align="center"><b>得分</b></td>
						<td><input type="text" name="score" value="0"
							style="width: 60px"> 最高分不得超过：10 <span
							id="s_baseTestScore" style="color: red"></span></td>
					</tr>
					<tr>
						<td colspan="2">
							<div align="center">
								<input type="button" value=" 通 过 " onClick="pass()"> <input
									type="button" value=" 不 通 过 " onClick="nopass()"> <input
									type="button" name="button" value=" 返 回 "
									onClick="javascript:history.back()">
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</s:form>
	</div>


</body>
</html>